package cn.b.sky.mes.andon.model;

import java.util.Date;

import cn.b.sky.common.model.ImeCommon;
import org.apache.commons.lang3.StringUtils;

public class Andon extends ImeCommon {
  /**
   * 按灯编号
   */
  private String andonCode;

  /**
   * 按灯描述
   */
  private String andonText;

  /**
   * 工作中心编码
   */
  private String workCenterCode;

  /**
   * 工作中心描述
   */
  private String workCenterText;

  /**
   * 作业单元编号
   */
  private String workUnitCode;

  /**
   * 作业单元描述
   */
  private String workUnitText;

  /**
   * 按灯组
   */
  private String andonGroup;

  /**
   * 按灯模板编号
   */
  private String templateCode;

  /**
   * 模板描述
   */
  private String templateText;

  /**
   * 按灯状态编号
   */
  private String statusECode;

  /**
   * 启动人
   */
  private String switchOnUser;

  /**
   * 启动时间
   */
  private Date switchOnDateTime;

  /**
   * 关闭人
   */
  private String switchOffUser;

  /**
   * 关闭时间
   */
  private Date switchOffDateTime;

  /**
   * 响应人
   */
  private String respondUser;

  /**
   * 响应时间
   */
  private Date respondDateTime;

  /**
   * 锁定标记
   */
  private Integer lockFlag;

  /**
   * 安灯类型编号
   */
  private String andonTypeCode;

  /**
   * 安灯类型描述
   */
  private String typeText;

  /** 
   * 事件编号
   */
  private String eventCode;

  /** 
  * 事件描述
  */
  private String eventText;

  /**
   * 消息通知规则编号
   */
  private String ruleCode;

  /**
   * 消息通知规则描述
   */
  private String ruleText;

  /**
   * 报警标记
   */
  private Integer alarmFlag;

  /**
   * 原始的作业单元
   */
  private String originalWorkUnitCode;

  /**
   * 原始的ANDON组
   */
  private String originalAndonGroup;

  public String getAndonGroup() {
    return andonGroup;
  }

  public void setAndonGroup(String andonGroup) {
    this.andonGroup = andonGroup;
  }

  public String getAndonCode() {
    return StringUtils.upperCase(andonCode);
  }

  public void setAndonCode(String andonCode) {
    this.andonCode = andonCode;
  }

  public String getAndonText() {
    return andonText;
  }

  public void setAndonText(String andonText) {
    this.andonText = andonText;
  }

  public String getWorkCenterCode() {
    return workCenterCode;
  }

  public void setWorkCenterCode(String workCenterCode) {
    this.workCenterCode = workCenterCode;
  }

  public String getWorkCenterText() {
    return workCenterText;
  }

  public void setWorkCenterText(String workCenterText) {
    this.workCenterText = workCenterText;
  }

  public String getWorkUnitCode() {
    return workUnitCode;
  }

  public void setWorkUnitCode(String workUnitCode) {
    this.workUnitCode = workUnitCode;
  }

  public String getWorkUnitText() {
    return workUnitText;
  }

  public void setWorkUnitText(String workUnitText) {
    this.workUnitText = workUnitText;
  }

  public String getTemplateCode() {
    return templateCode;
  }

  public void setTemplateCode(String templateCode) {
    this.templateCode = templateCode;
  }

  public String getStatusECode() {
    return statusECode;
  }

  public void setStatusECode(String statusECode) {
    this.statusECode = statusECode;
  }

  public String getSwitchOnUser() {
    return switchOnUser;
  }

  public void setSwitchOnUser(String switchOnUser) {
    this.switchOnUser = switchOnUser;
  }

  public Date getSwitchOnDateTime() {
    return switchOnDateTime;
  }

  public void setSwitchOnDateTime(Date switchOnDateTime) {
    this.switchOnDateTime = switchOnDateTime;
  }

  public String getSwitchOffUser() {
    return switchOffUser;
  }

  public void setSwitchOffUser(String switchOffUser) {
    this.switchOffUser = switchOffUser;
  }

  public Date getSwitchOffDateTime() {
    return switchOffDateTime;
  }

  public void setSwitchOffDateTime(Date switchOffDateTime) {
    this.switchOffDateTime = switchOffDateTime;
  }

  public String getRespondUser() {
    return respondUser;
  }

  public void setRespondUser(String respondUser) {
    this.respondUser = respondUser;
  }

  public Date getRespondDateTime() {
    return respondDateTime;
  }

  public void setRespondDateTime(Date respondDateTime) {
    this.respondDateTime = respondDateTime;
  }

  public Integer getLockFlag() {
    return lockFlag;
  }

  public void setLockFlag(Integer lockFlag) {
    this.lockFlag = lockFlag;
  }

  public String getTemplateText() {
    return templateText;
  }

  public void setTemplateText(String templateText) {
    this.templateText = templateText;
  }

  public String getAndonTypeCode() {
    return andonTypeCode;
  }

  public void setAndonTypeCode(String andonTypeCode) {
    this.andonTypeCode = andonTypeCode;
  }

  public String getTypeText() {
    return typeText;
  }

  public void setTypeText(String typeText) {
    this.typeText = typeText;
  }

  public String getEventCode() {
    return eventCode;
  }

  public void setEventCode(String eventCode) {
    this.eventCode = eventCode;
  }

  public String getEventText() {
    return eventText;
  }

  public void setEventText(String eventText) {
    this.eventText = eventText;
  }

  public String getRuleCode() {
    return ruleCode;
  }

  public void setRuleCode(String ruleCode) {
    this.ruleCode = ruleCode;
  }

  public String getRuleText() {
    return ruleText;
  }

  public void setRuleText(String ruleText) {
    this.ruleText = ruleText;
  }

  public Integer getAlarmFlag() {
    return alarmFlag;
  }

  public void setAlarmFlag(Integer alarmFlag) {
    this.alarmFlag = alarmFlag;
  }

  public String getOriginalWorkUnitCode() {
    return originalWorkUnitCode;
  }

  public void setOriginalWorkUnitCode(String originalWorkUnitCode) {
    this.originalWorkUnitCode = originalWorkUnitCode;
  }

  public String getOriginalAndonGroup() {
    return originalAndonGroup;
  }

  public void setOriginalAndonGroup(String originalAndonGroup) {
    this.originalAndonGroup = originalAndonGroup;
  }
}
